﻿using Paltop_.Controllers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;
using Paltop_DatabaseLayer;

namespace UnitTest
{
    
    
    /// <summary>
    ///This is a test class for StikyNoteControllerTest and is intended
    ///to contain all StikyNoteControllerTest Unit Tests
    ///</summary>
    [TestClass()]
    public class StikyNoteControllerTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for StikyNoteController Constructor
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StikyNoteControllerConstructorTest()
        {
            StikyNoteController target = new StikyNoteController();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CreateNoteHelper
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        [DeploymentItem("Paltop_v0.1.dll")]
        public void CreateNoteHelperTest()
        {
            string returnValue = string.Empty; // TODO: Initialize to an appropriate value
            PaltopDatabaseEntities pd = null; // TODO: Initialize to an appropriate value
            int userId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = StikyNoteController_Accessor.CreateNoteHelper(returnValue, pd, userId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteClose
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteCloseTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int stickyId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteClose(stickyId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteCreate
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteCreateTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            bool addKey = false; // TODO: Initialize to an appropriate value
            int userId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteCreate(addKey, userId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteDelete
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteDeleteTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int stickyId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteDelete(stickyId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteDragged
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteDraggedTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int xpos = 0; // TODO: Initialize to an appropriate value
            int ypos = 0; // TODO: Initialize to an appropriate value
            int sid = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteDragged(xpos, ypos, sid);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteMinMax
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteMinMaxTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int userId = 0; // TODO: Initialize to an appropriate value
            string minMaxStatus = string.Empty; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteMinMax(userId, minMaxStatus);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteMinimize
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteMinimizeTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int stickyId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteMinimize(stickyId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteResized
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteResizedTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int width = 0; // TODO: Initialize to an appropriate value
            int height = 0; // TODO: Initialize to an appropriate value
            int stickyId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteResized(width, height, stickyId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteReturnCreated
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteReturnCreatedTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            int userId = 0; // TODO: Initialize to an appropriate value
            int count = 0; // TODO: Initialize to an appropriate value
            int countExpected = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteReturnCreated(userId, ref count);
            Assert.AreEqual(countExpected, count);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for StickyNoteSave
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Amir\\Desktop\\Paltop Project\\Paltop_v0.1\\Paltop_v0.1", "/")]
        [UrlToTest("http://localhost:1195/")]
        public void StickyNoteSaveTest()
        {
            StikyNoteController target = new StikyNoteController(); // TODO: Initialize to an appropriate value
            string content = string.Empty; // TODO: Initialize to an appropriate value
            int stickyId = 0; // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            actual = target.StickyNoteSave(content, stickyId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
